package Services

import (
	"time"
)

type User struct {
	Id         int
	Name       string
	Age        int
	Email      string
	Phone      string
	Address    string
	CreatedAt  string
	CreateTime time.Time
	UpdatedAt  string
	UpdateTime time.Time
}

type IUserService interface {
	Add(user User) bool
	Edit(user User) bool
	Detail(id int) User
	Delete(id int) bool
}

type UserService struct{}

func (this UserService) Add(user User) bool {
	return true
}

func (this UserService) Edit(user User) bool {
	return true
}

func (this UserService) Detail(id int) User {
	return User{}
}

func (this UserService) Delete(id int) bool {
	return true
}
